﻿@model ViVa.ActiveDirectory.ADEntry



@using (Html.BeginForm())
{
  <div class="form_table">
    <table>

        <tr>
            <td>@Html.Label("Laatst ingelogd op:")</td> <td>@Model.LastLogonTimeStamp</td>
        </tr>

        <tr>
            <td>@Html.Label("Account Expires:") </td>  
            
            @if (@Model.AccountExpires == "0")
            {
                
              <td> <div style="float:left; width:10%;"> @Html.CheckBox("datetime_checkbox", false)  </div><div style="display:none; float:right; width:90%;" id="datetime_checkbox">
                                                          @Html.TextBoxFor(x => x.AccountExpires, new { id = "datepicker", @readonly = true }) 
                                                          </div></td>
            }
            else
            {
              <td> <div style="float:left; width:10%;"> @Html.CheckBox("datetime_checkbox", true) </div> <div style="float:right; width:90%;" id="datetime_checkbox">
                                                             @Html.TextBoxFor(x => x.AccountExpires, new { id = "datepicker", @readonly = true }) 
                                                            </div></td>
            }
            
        </tr>
        <tr>
            <td>@Html.Label("Disabled") </td> <td> @Html.CheckBoxFor(x => x.AccountDisabled) </td>
        </tr>
        <tr>
            <td><br /></td>
        </tr>
        <tr>
            <td>
            @Html.HiddenFor(x => x.SamAccountName)
            @Html.Hidden("action", "AccountAccessControl")
            <button type="submit" class="saveBTN"> Save </button>
            </td>
        </tr>

     </table>
   </div>
}